@media ( max-height: 450px ) {
	.magic-login__handle-link,
	.magic-login__check-email,
	.magic-login__link-expired {
		img {
			margin-top: -45px;
			max-height: 180px;
		}
		.empty-content__title {
			font-size: 90%;
		}
		.empty-content__line {
			font-size: 60%;
			margin-bottom: 20px;
		}
	}
}

.magic-login__request-link {
	max-width: 400px;
}

.magic-login__form {
	margin-bottom: 0;

	p {
		margin-bottom: 0;
	}

	.logged-out-form {
		border-radius: 0;
		box-shadow: 0 0 0 1px var( --color-border-subtle );
		margin: 0 auto;
		max-width: 400px;
		padding: 16px;

		@include breakpoint( '>480px' ) {
			padding: 24px;
		}

		p {
			margin-bottom: 20px;
		}
	}
}

.magic-login__form-header {
	font-size: 22px;
	margin-bottom: 24px;
	margin-top: 16px;
	text-align: center;

	body.is-section-signup & {
		color: var( --color-text-inverted );
	}
}

.magic-login__email-fields {
	margin: 0;
}

.magic-login__form-label {
	color: var( --color-neutral-70 );
	display: block;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 500;
	margin-bottom: 5px;
}

.magic-login__form-action {
	margin-top: 20px;
	overflow: auto;

	button {
		width: 100%;
	}
}

.magic-login__footer {
	a {
		border-bottom: 1px solid #c8d7e1;
		color: var( --color-neutral-50 );
		display: block;
		line-height: 4em;
		font-size: 14px;
		font-weight: 500;
		padding: 0 24px;
		text-align: center;
		text-decoration: none;

		&:hover {
			color: var( --color-primary );
		}
		&:last-of-type {
			border-bottom: none;
		}

		body.is-section-signup & {
			color: var( --color-text-inverted );
		}
	}
	.gridicon {
		vertical-align: text-bottom;
	}
}

.magic-login__check-email-image {
	display: block;
	height: 132px;
	margin: 0 auto 1.5em;
}
